# Public header files directory

# Create protocol handling library
add_library(sdfx_protocol STATIC ../common/src/protocol.c)
target_include_directories(sdfx_protocol PUBLIC 
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/../common/include
)
target_link_libraries(sdfx_protocol ${COMMON_LIBS})

# Install public header files
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sdfx
    FILES_MATCHING PATTERN "*.h"
    PATTERN "CMakeLists.txt" EXCLUDE
)